package src.lab03.Test06;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.RandomAccess;

/**
 * Created by 邱雅婷 on 2017/11/17.
 */
public class test01{
    public static void main(String[] args) {
        String path = "D:\\hello.txt";
        try {
            RandomAccessFile randomAccessFile = new RandomAccessFile(path,"r");

            String line = null;
            while((line = randomAccessFile.readLine())!= null){

            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
